﻿namespace EyeOpen.Web.Security
{
    public class HardCodedRoleProvider : FakeRoleProvider
    {
        public override string[] GetRolesForUser(string username)
        {
            if (username.StartsWith("admin", System.StringComparison.InvariantCultureIgnoreCase))
            {
                return new string[] { "Admins" };
            }
            else
            {
                return new string[] { };
            }
        }
    }
}